package com.zt.java.proxy;

import java.lang.reflect.Proxy;

public class ProxyFactory1 {

    private AbstractInvocationHander invocationHander;

    public  Object getProxy(Object target){
        invocationHander.setTarget(target);
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),target.getClass().getInterfaces(),invocationHander);
    }

}
